<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<script>
	$(document).ready(function() {

		startTime();

	});

	function startTime() {

		var today = new Date();

		var y = today.getFullYear();
		var mo = today.getMonth() + 1;
		var d = today.getDate();

		var h = today.getHours();
		var m = today.getMinutes();
		var s = today.getSeconds();

		m = checkTime(m);
		s = checkTime(s);

		$('#datetime').html(
				y + "/" + mo + "/" + d + " " + h + ":" + m + ":" + s);

		t = setTimeout(function() {
			startTime();
		}, 500);
	}

	function checkTime(i) {

		if (i < 10) {

			i = "0" + i;
		}

		return i;
	}
</script>


<!-- <body onload="startTime()"></body> -->
